import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import Layout from '@/layout/Main'

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      children: [
        {
          path: '/',
          component: resolve => require(['@/views/home/home'], resolve),
        },
        /*{
          path: '/Inspection',  query:{t:Date.now(),},
          component: resolve => require(['@/components/survey/Inspection'], resolve),
        },
        {
          path: '/merge',   query:{t:Date.now(),},
          component: resolve => require(['@/components/survey/merge'], resolve),
        },
        {
          path: '/resolution',  query:{t:Date.now(),},
          component: resolve => require(['@/components/survey/resolution'], resolve),
        },
        {
          path: '/correction',  query:{t:Date.now(),},
          component: resolve => require(['@/components/survey/correction'], resolve),
        },
        {
          path: '/announcement',  query:{t:Date.now(),},
          component: resolve => require(['@/components/first/announcement'], resolve),
        },
        {
          path: '/informationManage', query:{t:Date.now(),},
          component: resolve => require(['@/components/first/informationManage'], resolve),
        },
        {
          path: '/assignment',  query:{t:Date.now(),},
          component: resolve => require(['@/components/classification/assignment'], resolve),
        },
        {
          path: '/lwaudit',  query:{t:Date.now(),},
          component: resolve => require(['@/components/classification/lwaudit'], resolve),
        },
        {
          path: '/disposition',  query:{t:Date.now(),},
          component: resolve => require(['@/components/classification/disposition'], resolve),
        },
        {
          path: '/patrol',  query:{t:Date.now(),},
          component: resolve => require(['@/components/rectification/patrol'], resolve),
        },
        {
          path: '/firstStatistic',   query:{t:Date.now(),},
          component: resolve => require(['@/components/statistic/firstStatistic'], resolve),
        },
        {
          path: '/secondStatistic',
          component: resolve => require(['@/components/statistic/secondStatistic'], resolve),
        },
        {
          path: '/thirdStatistic',   query:{t:Date.now(),},
          component: resolve => require(['@/components/statistic/thirdStatistic'], resolve),
        },
        {
          path: '/forthStatistic',   query:{t:Date.now(),},
          component: resolve => require(['@/components/statistic/forthStatistic'], resolve),
        },

        {
          path: '/verification',  query:{t:Date.now(),},
          component: resolve => require(['@/components/verification/verification'], resolve),
        },

        {
          path: '/scheme',  query:{t:Date.now(),},
          component: resolve => require(['@/components/check/scheme'], resolve),
        },
        {
          path: '/ranking',  query:{t:Date.now(),},
          component: resolve => require(['@/components/check/ranking'], resolve),
        },
        {
          path: '/systemManage',  query:{t:Date.now(),},
          component: resolve => require(['@/components/first/systemManage'], resolve),
        }*/
      ]
    }
  ]
})
